package com.caiya.cart.entity;

import java.util.Date;

/**
 * Created by Administrator on 2018/11/22 0022.
 */
public class CartUser {
    private Long id;

    private String name;

    private String phone;

    private String userImg;

    private String userAddress;

    private Date updateTime=new Date();

    private Date createTime=new Date();

    public CartUser(Long id, String name, String phone, String userImg, String userAddress, Date updateTime, Date createTime) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.userImg = userImg;
        this.userAddress = userAddress;
        this.updateTime = updateTime;
        this.createTime = createTime;
    }

    public CartUser() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg == null ? null : userImg.trim();
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress == null ? null : userAddress.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
